module.exports = {
    APIError: (ctx, status, message) => {
        ctx.status = status || 404;
        ctx.type = 'application/json';
        ctx.body = {
            message: message || 'unknown_error'
        };
    },
    APIOK: (ctx, info) => {
        ctx.status = 200;
        ctx.type = 'application/json';
        ctx.body = {
            message: 'success',
            data: info || 'none'
        }
    }
}